home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfs609s.zoo / fsck / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-25  |  1.7 KB  |  80 lines

  1. /* Global and static Variables */
  2.  
  3. #include "../minixfs/hdio.h"
  4.  
  5. #ifndef EXTERN
  6. #define EXTERN extern
  7. extern char lfname[];
  8. #else
  9. char lfname[]="lost+found";
  10. #endif
  11.  
  12. /* General linked list structure */
  13. typedef struct linked_list
  14. {
  15.     long member;
  16.     struct linked_list *next;
  17. } llist;
  18.  
  19. /* Structure for determining inode names */
  20.  
  21. typedef struct inlist
  22. {
  23.     unsigned inum;        /* Inode number */
  24.     unsigned iparent;    /* Parent directory */
  25.     struct inlist *next;    /* pointer to next entry */
  26.     char name[1];        /* Actually longer than this ... */
  27. } ilist;
  28.  
  29. EXTERN char *drvnam;
  30.  
  31. EXTERN char version;        /* Non-zero for V2 */
  32.  
  33. EXTERN char modified,preen;
  34.  
  35. EXTERN ilist *inolist;
  36.  
  37. EXTERN llist *inums;
  38.  
  39. EXTERN long maxzone,minzone;    /* Max/Min Allowed Zone Numbers */
  40. EXTERN long maxino;        /* Max Inode Number */
  41. EXTERN long ioff;        /* Zone offset to inode block */
  42.  
  43. EXTERN int incr;        /* Directory increment */
  44.  
  45. EXTERN long berr;        /* Bitmap errors */
  46.  
  47. EXTERN char badroot;        /* Bad root inode or forced reallocation */
  48.  
  49. EXTERN long zonecount;            /* Maximum Zone Count */
  50. EXTERN long indcount;            /* Number of indirection blocks */
  51. EXTERN char dindcount;            /* '1' If double indirection block */
  52.  
  53. EXTERN char trunc,done_trunc;        /* Flags for truncation of files */
  54.  
  55. EXTERN char quit_trav;
  56.  
  57. /* These only appear in 'fsck.c' */
  58. #if defined(V1) || defined(V2)
  59. static d_inode *rip;    
  60. static d_inode zinode;            /* zero inode */
  61. static inode_stat *ist,*inode_status;
  62. #endif
  63.  
  64. EXTERN long cino;            /* current inode */
  65.  
  66. EXTERN unsigned *zbitmap,*szbitmap;    /* Zone and shadow zone bitmap */
  67. EXTERN unsigned *ibitmap;        /* Inode Bitmap */
  68.  
  69. EXTERN int cdirty;    
  70.  
  71. EXTERN super_block *Super;
  72.  
  73. EXTERN long ndir,nreg,nfifo,nchr,nblk,nsym,zfree,ifree;
  74.  
  75. EXTERN char ally,alln,info;
  76.  
  77. EXTERN unsigned lfinode;
  78.  
  79. EXTERN struct hdinfo hdinf;
  80.